package com.bruce.practice.design.strategy;

/**
 * @author luotuan
 * @Description
 * @create 2020-05-03 11:26
 **/
public class TaxStrategyTest {
    public static void main(String[] args) {
        TaxStrategy taxStrategy = TaxStrategyFactory.getTaxStrategy(TaxType.INTER);
        double tax = taxStrategy.calc(300);
        System.out.println("该收的税收是："+tax);
    }
}
